//
//  PathLink.cpp
//  IsoCplus
//
//  Created by 周张林 on 15/9/15.
//
//

#include "PathLink.h"

bool PathLink::init(PathNode *pathNode,int cost)
{
    if(node!=nullptr) return false;
    
    this->node = pathNode;
    this->cost = cost;
    return true;
}

PathLink::~PathLink(){
    node = nullptr;
}